<?php
/* Apply WordPress defined filters */
add_filter( 'dpa_get_achievement_name', 'wp_filter_kses', 1 );
add_filter( 'dpa_get_achievement_name', 'wptexturize' );
add_filter( 'dpa_get_achievement_name', 'convert_smilies', 2 );
add_filter( 'dpa_get_achievement_name', 'convert_chars' );
add_filter( 'dpa_get_achievement_name', 'stripslashes_deep' );

add_filter( 'dpa_get_achievement_shortname', 'sanitize_title' );
add_filter( 'dpa_make_category_slug', 'sanitize_title' );

add_filter( 'dpa_get_achievement_points', 'wp_filter_kses', 1 );

add_filter( 'dpa_get_achievement_description', 'wp_filter_kses', 1 );
add_filter( 'dpa_get_achievement_description', 'wptexturize' );
add_filter( 'dpa_get_achievement_description', 'convert_smilies', 2 );
add_filter( 'dpa_get_achievement_description', 'convert_chars' );
add_filter( 'dpa_get_achievement_description', 'stripslashes_deep' );
add_filter( 'dpa_get_achievement_description', 'make_clickable' );

add_filter( 'dpa_get_achievement_category', 'wp_filter_kses', 1 );
add_filter( 'dpa_get_achievement_category', 'wptexturize' );
add_filter( 'dpa_get_achievement_category', 'convert_smilies', 2 );
add_filter( 'dpa_get_achievement_category', 'convert_chars' );
add_filter( 'dpa_get_achievement_category', 'stripslashes_deep' );

/* Admin - editing */
add_filter( 'dpa_admin_achievement_name_edit_value', 'wp_filter_kses', 1 );
add_filter( 'dpa_admin_achievement_name_edit_value', 'force_balance_tags' );
add_filter( 'dpa_admin_achievement_name_edit_value', 'stripslashes' );

add_filter( 'dpa_admin_achievement_description_edit_value', 'wp_filter_kses', 1 );
add_filter( 'dpa_admin_achievement_description_edit_value', 'force_balance_tags' );
add_filter( 'dpa_admin_achievement_description_edit_value', 'stripslashes' );

add_filter( 'dpa_admin_achievement_category_edit_value', 'wp_filter_kses', 1 );
add_filter( 'dpa_admin_achievement_category_edit_value', 'force_balance_tags' );
add_filter( 'dpa_admin_achievement_category_edit_value', 'stripslashes' );

add_filter( 'dpa_admin_achievement_categoryid_edit_value', 'wp_filter_kses', 1 );

add_filter( 'dpa_admin_achievement_points_edit_value', 'wp_filter_kses', 1 );

add_filter( 'dpa_admin_category_name_edit_value', 'wp_filter_kses', 1 );
add_filter( 'dpa_admin_category_name_edit_value', 'force_balance_tags' );
add_filter( 'dpa_admin_category_name_edit_value', 'stripslashes' );
?>